<?php

namespace app\admin\model\platform;


/**
 * @author tangsan
 * @package app\admin\model
 */
class GameRoomInfo extends BaseModel
{
    // 设置数据表名
    protected $table = "GameRoomInfo";


    public static function getRoomAll()
    {
        return GameRoomInfo::select()->toArray();
    }

    public static function getRoom($id)
    {
        if (!$id) {
            return '';
        }
        return GameRoomInfo::where('ServerID', $id)->value('ServerName');
    }

}